module.exports = function(DataTypes) {
  return {
    attributes: {
      id: {
        type: DataTypes.BIGINT,
        primaryKey: true,
        autoIncrement: true
      },
      subTaskCount: {
        type: DataTypes.INTEGER,
        comment: 'Total sub task number contained in this task'
      },
      expireAt: {
        type: DataTypes.DATE
      },
    },
    options: {
      paranoid: true,
      indexes: [
        {
          name: 'updated_at_idx',
          fields: ['updatedAt']
        },
        {
          name: 'created_at_idx',
          fields: ['createdAt']
        }
      ]
    }
  }
}
